extends Control

@onready var single = $Single
@onready var multi = $Multi

func setMode(isMulti = false):
	single.visible = false
	multi.visible = false
	
	if isMulti: multi.visible = true
	else: single.visible = true
	
	visible = true


func _on_upper_button_button_down():
	GlobalSignals.MAIN_GAME_BUTTON_UPPER_TRIGGER.emit()


func _on_left_button_on_trigger():
	GlobalSignals.MAIN_GAME_BUTTON_LEFT_TRIGGER.emit()


func _on_right_button_on_trigger():
	GlobalSignals.MAIN_GAME_BUTTON_RIGHT_TRIGGER.emit()


func _on_down_button_on_trigger():
	GlobalSignals.MAIN_GAME_BUTTON_DOWN_TRIGGER.emit()
